﻿using GameFramework.WebServer;
using GameFramework.Reference;

namespace Server.Proto
{
    public class WebAuthResp : WebServerResp
    {
        /// <summary>
        /// 账号id
        /// </summary>
        public long AccountId { get; set; }
        
        /// <summary>
        /// 登录票据
        /// </summary>
        public string LoginToken { get; set; }
        
        /// <summary>
        /// 推荐服务器
        /// </summary>
        public ServerInfo RecommendServer { get; set; }

        public override void OnRecycle()
        {
            base.OnRecycle();
            AccountId = default;
            LoginToken = string.Empty;
            RecommendServer?.Recycle();
            RecommendServer = null;
        }
    }
}